<?php
/**
* @file $Id: Current.php 161 2006-09-07 06:21:17Z doritojones $
* @package Focus/SIS
* @copyright Copyright (C) 2006 Andrew Schmadeke. All rights reserved.
* @license http://www.gnu.org/copyleft/gpl.html GNU/GPL, see LICENSE.txt
* Focus/SIS is free software. This version may have been modified pursuant
* to the GNU General Public License, and as distributed it includes or
* is derivative of works licensed under the GNU General Public License or
* other free or open source software licenses.
* See COPYRIGHT.txt for copyright notices and details.
*/


function UserSchool()
{
	return $_SESSION['UserSchool'];
}

function UserSyear()
{
	return $_SESSION['UserSyear'];	
}

function UserMP()
{
	return $_SESSION['UserMP'];	
}

// DEPRECATED
function UserPeriod()
{
	return $_SESSION['UserPeriod'];	
}

function UserCoursePeriod()
{
	return $_SESSION['UserCoursePeriod'];
}

function UserStudentID()
{
	return $_SESSION['student_id'];	
}

function UserStaffID()
{
	if(User('PROFILE')=='parent')
		$_SESSION['staff_id'] = User('STAFF_ID');
	return $_SESSION['staff_id'];	
}

?>
